﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SimpleSpeech.aspx.cs" Inherits="ml_test_google_trans.TTS.SimpleSpeech" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <p>
        <a href="../Default.aspx">Back to test funcation list page</a></p>
    <div>
        <asp:TextBox ID="txtTrg" runat="server" Height="176px" Rows="16" TextMode="MultiLine"
            Width="405px">I love you very much.Please sit down.Pay more.Don't worry.</asp:TextBox>
        <br />
        <table>
            <tr>
                <td>
                    <asp:Button ID="btnSaveSpeechFiles" runat="server" OnClick="btnSaveSpeechFile_Click" Text="Build the Speech Files" />
                    &nbsp;By the Language<asp:DropDownList ID="ddlTo" runat="server">
                        <asp:ListItem Value="zh-CN">中文(简体)</asp:ListItem>
                        <asp:ListItem Value="zh-TW">中文(繁体)</asp:ListItem>
                        <asp:ListItem Selected="True" Value="en">English</asp:ListItem>
                        <asp:ListItem Value="fr">Finnish</asp:ListItem>
                        <asp:ListItem Value="vi">Vietnamese</asp:ListItem>
                        <asp:ListItem Value="es">Spanish</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;By the TTS
                </td>
                <td>
                    <asp:RadioButtonList ID="rblTtsType" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
            </tr>
        </table>
        <p>說明一下,向Bing TTS(屬有償的服務)發出語音請求可以很快地回應(MP3的品質沒有后者好,文件小一些),在N次Call的過程中無需要做延時等待,
        向Google TTS(屬無償的服務)發出請求時也很快回應,但在N次Call的過程中,需要做延時等待</p>
        <br />
        <br />
        <table>
            <tr>
                <td>
                    &nbsp;By
                </td>
                <td>
                    <asp:RadioButtonList ID="rblPlayMode" runat="server" RepeatDirection="Horizontal">
                    </asp:RadioButtonList>
                </td>
                <td>
                    <asp:Button ID="btnPlaySound" runat="server" Text="Play" OnClick="btnPlaySound_Click" />多段語音的有順播放,應該還是可以優化的.
                </td>
            </tr>
        </table>
    </div>
    <p>
        <asp:Label ID="lblMsg" runat="server" Font-Bold="True" ForeColor="#006666"></asp:Label></p>
    <p>
        <asp:Label ID="lblContext" runat="server" Font-Bold="True" ForeColor="#0033CC"></asp:Label></p>
    </form>
</body>
</html>
